package main.scala.algirithms.KDtree

object test {
  def main(args: Array[String]): Unit = {
    val nodes: Seq[Seq[Double]] = {
      Seq(Seq(2, 3), Seq(5, 4), Seq(9, 6), Seq(4, 7), Seq(8, 1), Seq(7, 2))

    }


    nodes.foreach(x=>{val f= x (1)
    println(f)})


    val sorted = nodes.sortBy(x => x (0))
    sorted.foreach(println)
  }

}
